
option(USE_CUSTOME_REPO_TOOL "使用自定义提供的 repo 工具" OFF)
# 采用外部支持的 platform-tools (目前仅 Linux x86_64可用), 在安装时由 debian 安装脚本进行处理
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux" AND USE_CUSTOME_REPO_TOOL)
    set(REPO_TOOL /usr/share/${PROJECT_NAME}/lib/)
    install(PROGRAMS assets/tools/repo
        DESTINATION /usr/share/${PROJECT_NAME}/lib/)
else()
    set(REPO_TOOL "")
endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux" AND USE_CUSTOME_REPO_TOOL)

configure_file(config/config.h.in ${CMAKE_BINARY_DIR}/config.h 
    @ONLY)